<!DOCTYPE html>
<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <title>query.descendant</title>
        <script>
            window.$$path = location.protocol + "//" + location.host;
            document.write('<script src="' + $$path + '/mass_merge.js"><\/script>');
            document.write('<script src="' + $$path + '/doc/scripts/common.js"><\/script>');
        </script>
        <style type="text/css">
            ul{
                list-style-image: url(../public/images/li.gif)
            }
            .list {
                color:#FF6363;
                font-weight:bolder;
            }
            table.clicktable {
                border-collapse:collapse;
                border:#8a6100 1px solid;
            }
            table.clicktable th{
                border:#8a6100 2px solid;
                border-color:  #ffe3a4 #ffe3a4 #8a6100 #8a6100;
                color: #ffff00;
                background:#e19d00;
            }
            table.clicktable td{
                border:#8a6100 1px   inset;
                background:#EEE8AA;
                color:#000;
            }
            table.clicktable tr.even td{
                background:#FF7F50;
                color:#8B4513;
            }
        </style>
        <script type="text/javascript">
            $(function(){
                $("body").delegate(".clicktable tbody td","click",function(){
                    var input =  $("input[type=checkbox]:first")
                    if(input.length){
                        input[0].indeterminate = true;
                    }
                    var code = $.String.unescapeHTML( this.innerHTML )
                    $.parseJS( code );
                });
            })
        </script>
    </head>
    
    <body>
        <article>
            <p>后代选择器。</p>
            <fieldset>
                <legend>例子</legend>
                <table class="clicktable" cellspacing="0" width="700" rules="cols">
                    <thead>
                        <tr>
                            <th>请点击下面表格</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>$("div span").css("background-color","red");</td>
                        </tr>
                        <tr>
                            <td>$("div [title]").css("background-color","darkorchid");</td>
                        </tr>
                    </tbody>
                </table>
                <pre class="brush:javascript;gutter:false;toolbar:false">
< div id = "games" > < p id = "fanalfantasy"
class = "bbb" > 最终幻想 | < span class = "aaa" > 勇者斗恶龙 | < /span><span class="ccc">女神转生| </span > < span class = "bbb" > 传说系列 < /span></p > < p class = "aaa" > 荒野兵器 | < span title = "hello" > 北欧女神 < /span></p > < p title = "aaa" > 浪漫沙加 | < span title = "bye" > 王国之心 < /span></p > < p id = "legend " > 圣剑传说 | < span class = "ccc eee"
title = "goodbye" > 幻想水浒传 | < /span><em>影之心 |<span class="aaa">格兰蒂亚 </span > < /em></p > < /div>
</pre>
                <div id="games">
                    <p id="fanalfantasy" class="bbb">最终幻想 |
                        <span class="aaa">勇者斗恶龙 |</span>
                        <span class="ccc">女神转生|</span>
                        <span class="bbb">传说系列</span>
                    </p>
                    <p class="aaa">荒野兵器 |
                        <span title="hello">北欧女神</span>
                    </p>
                    <p title="aaa">浪漫沙加|
                        <span title="bye">王国之心</span>
                    </p>
                    <p id="legend ">圣剑传说 |
                        <span class="ccc eee" title="goodbye">幻想水浒传|</span>
                        <em>影之心 |
                            <span class="aaa">格兰蒂亚</span>
                        </em>
                    </p>
                </div>
            </fieldset>
        </article>
    </body>

</html>